home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / share / python / runtime.d / pycentral.rtinstall next >
Text File  |  2008-05-28  |  284b  |  14 lines

  1. #! /bin/sh -e
  2.  
  3. cmd="$1"
  4. runtime="$2"
  5. oldversion="$3"
  6. newverison="$4"
  7.  
  8. if which python >/dev/null 2>&1 && which pycentral >/dev/null 2>&1; then
  9.     pycentral rtinstall --ignore-errors=yes $runtime
  10. else
  11.     echo >&2 "python or pycentral not found in $(basename $0) hook."
  12.     exit 1
  13. fi
  14.